package com.tfswx.jcyw.sqlmodel.gic.executor;

import com.tfswx.jcyw.sqlmodel.api.bean.table.Select;
import com.tfswx.jcyw.sqlmodel.api.executor.Executor;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 张述江
 * @date 2023/9/8
 */
public final class DefaultExecutor implements Executor {

    @Override
    public void complete(Select result) {
        System.out.println("分支结束，分支最后结果：" + result);
    }

    Map<String, String> resultMap = new HashMap<>();

    @Override
    public String getResult(String id) {
        return resultMap.get(id);
    }

    @Override
    public void saveResult(String id, String result) {
        resultMap.put(id, result);
    }
}
